
add_executable(main "main.cpp")

target_link_libraries(main PUBLIC ${target})
#target_link_libraries(main  PUBLIC vtkm_filter vtkm_io)

vtkm_add_target_information(main
                            DROP_UNUSED_SYMBOLS MODIFY_CUDA_FLAGS
                            DEVICE_SOURCES main.cpp)

#file(GENERATE OUTPUT "$<TARGET_FILE_DIR:main>/" INPUT "${CMAKE_SOURCE_DIR}/contrib/tbb/tbb.dll")
file(COPY "${CMAKE_SOURCE_DIR}/contrib/tbb/tbb.dll" DESTINATION  "${CMAKE_CURRENT_BINARY_DIR}" )

file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/input.pot" DESTINATION  "${CMAKE_CURRENT_BINARY_DIR}" )